package com.xgry.bpm.common.exceptions;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Slf4j
public class JPAServiceException extends Exception {
    private int value;

    public JPAServiceException(String errstr){
        super("JpaService"+errstr);
        StackTraceElement stackTraceElement= super.getStackTrace()[0];
        log.error("自定义信息:"+errstr+"\r\n 类："+stackTraceElement.getClassName()+"\r\n方法："+stackTraceElement.getMethodName()+"\r\n行号："+stackTraceElement.getLineNumber());
    }
}
